package cz.proks.schoolpupilbook.gae.restlet.resource;

import java.util.LinkedList;
import java.util.List;

import org.restlet.representation.Variant;
import org.restlet.resource.ServerResource;

public class BaseServerResource extends ServerResource {		
	@Override
	public List<Variant> getVariants() {
		List<Variant> variants = null;
		
		try { variants = super.getVariants(); } 
		catch (Exception e) { variants = null; }
		
		return variants == null ? new LinkedList<Variant>() : variants;
	}
}
